@extends('admin.main')
@section('body')
<div class="main-title">
    <h2>{{isset($info['id']) ? '编辑':'新增'}}工人</h2>
</div>
<div class="tab-wrap">
    <div class="tab-content">
        <form action="" method="post" class="form-horizontal">
            <!-- 基础 -->
            <div id="tab1" class="tab-pane in tab1">
                <div class="form-item">
                    <label class="item-label">
                        工号<span class="check-tips">（工号不能为空，必须为四位数字）</span>
                    </label>
                    <div class="controls">
                        <input type="text" name="code" class="text input-large" value="{{isset($info['code']) ? $info['code'] : ''}}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        姓名<span class="check-tips">（姓名不能为空）</span>
                    </label>
                    <div class="controls">
                        <input type="text" name="name" class="text input-large" value="{{isset($info['name']) ? $info['name'] : ''}}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        手机号<span class="check-tips">（手机号不能为空）</span>
                    </label>
                    <div class="controls">
                        <input type="text" name="mobile" class="text input-large" value="{{isset($info['mobile']) ? $info['mobile'] : ''}}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label"><span class="check-tips">默认登录密码：123456</span>
                    </label>
                </div>
            <!-- 高级 -->
            <div class="form-item">
                <input type="hidden" name="id" value="{{isset($info['id']) ? $info['id'] : ''}}">
                <button type="submit" id="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定
                </button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>
</div>
@endsection
